using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class WinUi : MonoBehaviour
{
    [SerializeField]
    private Text _winText;


    private void Start()
    {
        _winText.gameObject.SetActive(false);
    }

    private void OnEnable()
    {
        Level.Win += Level_Win;
    }

    private void OnDisable()
    {
        Level.Win -= Level_Win;
    }

    private void Level_Win(float time)
    {
        _winText.gameObject.SetActive(true);
    }
}
